@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
FaxAccount Management ::
@parent
@stop

@section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">FaxAccount list</li>
@stop

@section('content.main')

<p>{{ link_to_route('car_balance.fax_account.create', 'Add new FaxAccount', null, array('class' => 'btn btn-info')) }}</p>

    <!--{{ link_to_route('car_balance.fax_account.index', 'Include Deleted FaxAccount', array('withTrashed' => 'true'), array('class' => 'btn btn-medium')) }}
    {{ link_to_route('car_balance.fax_account.index', 'Show Only Deleted FaxAccount', array('onlyTrashed' => 'true'), array('class' => 'btn btn-medium')) }}-->

{{  $fax_accounts->links() }}

<table class="table table-bordered table-striped table-hover">
    <thead>
    <tr>
                <th>Id</th>
                <th>Sender name</th>
                <th>E-mail</th>
                <th>Efax service</th>
                <th>Subject</th>
                <th>Email body</th>
                <th>Email signature</th>
<!--                <th>Email password</th>-->
                <th>Email host</th>
                <th>Email protocol</th>
                <th>Email encryption</th>
        <th class="span2">Actions</th>
    </tr>
    </thead>
    <tbody>
    @foreach ($fax_accounts as $fax_account)
    <tr>
        <td>{{  link_to_route('car_balance.fax_account.show', $fax_account->id, array($fax_account->id), array()) }}</td>
        <td>{{  $fax_account->sender }}</td>
        <td>{{  $fax_account->email }}</td>
        <td>{{  $fax_account->efax_service }}</td>
        <td>{{  $fax_account->subject }}</td>
        <td>{{  $fax_account->email_body }}</td>
        <td>{{  $fax_account->email_signature }}</td>
<!--        <td></td>-->
        <td>{{  $fax_account->email_host }}</td>
        <td>{{  $fax_account->email_protocol }}</td>
        <td>{{  $fax_account->email_encryption }}</td>
        <td>
            <a href="{{  route('car_balance.fax_account.edit', $fax_account->id) }}" class="btn btn-mini">Edit</a>
            @if ( ! is_null($fax_account->deleted_at))
            <a href="{{  route('car_balance.fax_account.restore', $fax_account->id) }}" class="btn btn-mini btn-warning">Restore</a>
            @else
            <a href="{{  route('car_balance.fax_account.delete', $fax_account->id) }}" class="btn btn-mini btn-danger">Delete</a>
            @endif
        </td>
    </tr>
    @endforeach
    </tbody>
</table>

{{  $fax_accounts->links() }}

@stop